package Test;

import java.util.Scanner;
public class FunctionUtil {
    public FunctionUtil() {
        Scanner sc = new Scanner(System.in);
        String n = sc.nextLine();
        StudentUtil su = new StudentUtil();
        switch (n){
            case "1":su.addData();break;
            case "2":su.deleteData();break;
            case "3":su.upData();break;
            case "4":su.selectData();break;
            case "0":
                System.out.println("系统已关闭，感谢您的使用！");
                sc.close();
                System.exit(0);
            default:
                System.out.println("您输入的序号不正确，请重新输入！");
                break;
        }
    }
}
